<div class="layui-form" lay-filter="LAY-home-friendlinks-listform" id="LAY-home-friendlinks-listform">

    <div class="layui-form-item">
        <label class="layui-form-label">站点名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="link_name" value="{{ d.params.link_name }}" lay-verify="required"
                       placeholder="请输入站点名称" autocomplete="off" class="layui-input">
                <input type="hidden" name="id" value="{{ d.params.link_id }}">
            </script>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">友情链接</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="link_url" value="{{ d.params.link_url }}" lay-verify="required"
                       placeholder="请输入友情链接" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="number" name="show_order" lay-affix="number" min="0" value="{{ d.params.show_order | 0 }}"
                       placeholder="请输入排序" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">是否显示</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="checkbox" name="is_show" title="开启|关闭" value="1" lay-skin="switch"
                       {{# if(!d.params.is_show){d.params.is_show=1 } }}
                       {{# if(d.params.is_show){ }}
                       checked
                       {{# } }}
                >
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-home-friendlinks-listform-submit" value="确认"
                   class="layui-btn">
        </div>
    </div>
</div>